Append dictionary keys to an array instead of their values